﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace com.iot.core.boot.configuration
{
    public class IDConfig : IConfig
    {
        public int DataCenterId { get; private set; } = 1;

        /// <summary>
        /// Gets or sets the short term cache time in minutes
        /// </summary>
        public int WorkerId { get; private set; } = 1;
        [JsonIgnore]
        public string Name
        {
            get
            {
                return "IDConfig";
            }
        }

        /// <summary>
        /// Gets an order of configuration
        /// </summary>
        /// <returns>Order</returns>
        public int GetOrder() => 0; //display first
    }
}
